package org.gpp.proj1.logic.core.board;

public enum FacingSides {
	NORTH, SOUTH, EAST, WEST;

	public static FacingSides random() {

		int value = (int) (Math.random() * 4);

		return fromValue( value );
	}

	public static FacingSides fromValue(int value) {
		switch( value ) {
			case 0:
				return NORTH;
			case 1:
				return SOUTH;
			case 2:
				return EAST;
			case 3:
				return WEST;
		}

		return null;
	}
}
